package com.otp.model.test.template.dao.impl;

import org.appfuse.dao.hibernate.GenericDaoHibernate;
import java.util.List;
import com.otp.model.test.template.AttributeValue;
import com.otp.model.test.template.dao.AttributeValueDao;

public class AttributeValueDaoHibernate extends GenericDaoHibernate<AttributeValue,Long> implements AttributeValueDao{
	
	public AttributeValueDaoHibernate() {
		super(AttributeValue.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<AttributeValue> getAttributeValuesByParentAttribute(String attributeId){
		List<AttributeValue> result=null;
		String query = "from AttributeValue where fk2attribute=?";
		result =  getHibernateTemplate().find(query,attributeId);
		return result;
	}
}
